#ifndef _U_SCROLL_BAR_H_
#define _U_SCROLL_BAR_H_
#include <QWidget>

class UScrollBar : public QWidget
{
	Q_OBJECT
public:
	UScrollBar(QWidget* parent);
	~UScrollBar();
	void adjustSize();
	int sliderPosition();
	void setSliderPosition(int);
	void show();
	void move(int x, int y);

private:signals:
	void valueChanged(int value);

private:
	bool eventFilter(QObject* obj, QEvent* event)override;

	QWidget* m_pWidget;
	bool m_enable;
};

#endif// _U_SCROLL_BAR_H_